﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat c = new Cat();
            c.climb();
            Monkey m = new Monkey();
            m.climb();
            Duck D = new Duck();
            D.Swim();
            Dog dog = new Dog(); 
            dog.Swim();
            Test(c);
        }
        public static void Test(Eat e)
        {
            e.eat();
        }
    }
}
